<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="resource/css/bootstrap.css">
    <script src="resource/js/jquery-3.2.1.js"></script>
    <script src="resource/js/bootstrap.js"></script>
    <title>详情</title>
</head>
<body>

<form>
    <table class="table table-hover">
        <tr>
            <th scope="col">用户名:${user.userName}  性别：${user.userGender.name}   订单编号：${order.orderId}  订单金额:${order.money}</th>
        </tr>
        <tr>
            <td>商品编号</td>
            <td>商品名称</td>
            <td>商品价格</td>
            <td>图片</td>
            <td>购买商品数量</td>
            <td>生产日期</td>
        </tr>
        <c:forEach items="${gList}" var="o">
            <tr>
                <td>${o.goodsId}</td>
                <td> ${o.goodsName} </td>
                <td>${o.goodsPrice} </td>
                <td><img src="${o.goodsPicture}" style="width: 50px;height: 50px "></td>
                <td>${o.goodsTotal}</td>
                <td><fmt:formatDate value="${o.goodsDate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</form>

</body>
</html>
